package com.smedi.ismedi.authoritymanagement.core.port.adapter.persistence.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.smedi.ismedi.authoritymanagement.core.infrastructure.handler.ListTypeHandler;
import com.smedi.ismedi.database.starter.model.BasicFieldEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-7-13 19:42
 */
@Data
@TableName(value = "ath_term_relationship_group", autoResultMap = true)
public class TermRelationshipGroupEntity extends BasicFieldEntity implements Serializable {
    @TableField(value = "type")
    private String type;

    @TableField(value = "meaning")
    private String meaning;

    @TableField(value = "children_rules", typeHandler = ListTypeHandler.class)
    private List childrenRules = new ArrayList();
}
